{{template "header.html"}}
<form action="updateCategory" method="POST">
	<input type="hidden" name="id" value="{{.Id}}"/>

	<label for="id">Id:</label>
	<input type="text" name="showid" disabled value="{{.Id}}"/><br/>

	<label for="name">Name:</label>
	<input type="text" name="name" value="{{.Name}}"/><br/>

	<label for="code">Code:</label>
	<input type="text" name="code" value="{{.Code}}"/><br/>
	
	<input type="submit" value="Save"/>
	<input type="submit" name="saveAndContinue" value="Save and continue editing"/>
	{{if .Id}}<a class="del" href="deleteCategory?id={{.Id}}">x</a>{{end}}
</form>